package com.beilang.hotline.email.manager.impl;

import com.beilang.hotline.email.dao.EmailServerDAO;
import com.beilang.hotline.email.manager.EmailServerMgr;
import com.beilang.hotline.email.model.EmailServerModel;

public class EmailServerMgrImpl implements EmailServerMgr {
	private EmailServerDAO emailServerDAO;

	public void setEmailServerDAO(EmailServerDAO emailServerDAO) {
		this.emailServerDAO = emailServerDAO;
	}

	public EmailServerModel createEmailServer(EmailServerModel emailModel) {
		return emailServerDAO.createEmailServer(emailModel);
	}

	public EmailServerModel saveEmailServer(EmailServerModel emailModel) {
		return emailServerDAO.saveEmailServer(emailModel);
	}

	public void deleteEmailServer(Long emailId) {
		emailServerDAO.deleteEmailServer(emailId);
	}

	public EmailServerModel getEmailServer() {
		return emailServerDAO.getEmailServer();
	}
}
